package com.zimin.cloud.mine.pojo.user.business;

import lombok.*;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

/**
 * <p>
 * 用户表 业务对象
 * </p>
 *
 * @author zimin
 * @since 2022-06-14 15:53
 */
@Getter
@Setter
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class UserBO implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    /**
     *手机号
     */
    @NotEmpty(message = "手机号不可为空")
    @Length(message = "手机号长度不正确",min = 13,max = 13)
    private String phone;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 密码
     */
    private String password;

    /**
     * 盐值
     */
    private String salt;


}
